import request from '@/utils/request'

// 查询商业伙伴银行账户信息列表
export function listBpMasterBankAccount(query) {
  return request({
    url: '/lease/bpMasterBankAccount/list',
    method: 'get',
    params: query
  })
}

// 查询商业伙伴银行账户信息详细
export function getBpMasterBankAccount(bankAccountId) {
  return request({
    url: '/lease/bpMasterBankAccount/' + bankAccountId,
    method: 'get'
  })
}

// 新增商业伙伴银行账户信息
export function addBpMasterBankAccount(data) {
  return request({
    url: '/lease/bpMasterBankAccount',
    method: 'post',
    data: data
  })
}

// 修改商业伙伴银行账户信息
export function updateBpMasterBankAccount(data) {
  return request({
    url: '/lease/bpMasterBankAccount',
    method: 'put',
    data: data
  })
}

// 删除商业伙伴银行账户信息
export function delBpMasterBankAccount(bankAccountId) {
  return request({
    url: '/lease/bpMasterBankAccount/' + bankAccountId,
    method: 'delete'
  })
}
